<template>
  <div class="mycard">
    <div class="top">
      <p class="title">{{ title }}</p>
      <p class="img"></p>
    </div>
    <slot></slot>
  </div>
</template>

<script setup lang="ts">
defineProps(['title', 'bagImg']);
</script>

<style lang="scss" scoped>
.mycard {
  background: url('../../images/dataScreen-main-rc.png') no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;

  .top {
    position: relative;

    .title {
      font-size: 20px;
      color: white;
    }

    .img {
      width: 86px;
      height: 7px;
      margin-top: 10px;
      background: url('../../images/dataScreen-title.png') no-repeat;
      background-size: 100% 100%;
    }
  }
}
</style>
